text/template/parse.lexer.input (field)
30 uses
text/template/parse (current package)
lex.go#L115: input string // the string being scanned
lex.go#L132: if int(l.pos) >= len(l.input) {
lex.go#L136: r, w := utf8.DecodeRuneInString(l.input[l.pos:])
lex.go#L156: if l.width == 1 && l.input[l.pos] == '\n' {
lex.go#L163: l.items <- item{t, l.start, l.input[l.start:l.pos], l.startLine}
lex.go#L170: l.line += strings.Count(l.input[l.start:l.pos], "\n")
lex.go#L221: input: input,
lex.go#L253: if x := strings.Index(l.input[l.pos:], l.leftDelim); x >= 0 {
lex.go#L257: if hasLeftTrimMarker(l.input[l.pos+ldn:]) {
lex.go#L258: trimLength = rightTrimLength(l.input[l.start:l.pos])
lex.go#L262: l.line += strings.Count(l.input[l.start:l.pos], "\n")
lex.go#L269: l.pos = Pos(len(l.input))
lex.go#L272: l.line += strings.Count(l.input[l.start:l.pos], "\n")
lex.go#L286: if hasRightTrimMarker(l.input[l.pos:]) && strings.HasPrefix(l.input[l.pos+trimMarkerLen:], l.rightDelim) { // With trim marker.
lex.go#L289: if strings.HasPrefix(l.input[l.pos:], l.rightDelim) { // Without trim marker.
lex.go#L303: trimSpace := hasLeftTrimMarker(l.input[l.pos:])
lex.go#L308: if strings.HasPrefix(l.input[l.pos+afterMarker:], leftComment) {
lex.go#L323: i := strings.Index(l.input[l.pos:], rightComment)
lex.go#L340: l.pos += leftTrimLength(l.input[l.pos:])
lex.go#L348: trimSpace := hasRightTrimMarker(l.input[l.pos:])
lex.go#L356: l.pos += leftTrimLength(l.input[l.pos:])
lex.go#L399: if l.pos < Pos(len(l.input)) {
lex.go#L400: r := l.input[l.pos]
lex.go#L445: if hasRightTrimMarker(l.input[l.pos-1:]) && strings.HasPrefix(l.input[l.pos-1+trimMarkerLen:], l.rightDelim) {
lex.go#L464: word := l.input[l.start:l.pos]
lex.go#L580: return l.errorf("bad number syntax: %q", l.input[l.start:l.pos])
lex.go#L584: if !l.scanNumber() || l.input[l.pos-1] != 'i' {
lex.go#L585: return l.errorf("bad number syntax: %q", l.input[l.start:l.pos])